package com.geline.easytrans.enums;

import com.geline.easytrans.annotation.DictType;
import com.geline.easytrans.dict.IDict;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 访问日志类型
 * @author mengx
 * @version 2020/10/30 16:22
 */
@DictType(value = "sys_login_type", label = "访问日志类型")
@AllArgsConstructor
@Getter
public enum LoginTypeEnum implements IDict {
    login("登录"),
    register("注册"),
    logout("退出"),
    resetPwd("改密码"),
    phoneCode("发短信"),
    emailCode("发邮件"),
    binding("绑定"),
    unbind("解绑");

    private String desc;

    @Override
    public String getLabel() {
        return desc;
    }

    @Override
    public Object getValue() {
        return this.name();
    }
}
